package com.cfun.mylearn.Support.module.Dagger2;

import android.app.Application;
import android.content.Context;

import com.cfun.mylearn.Support.base.BaseApplication;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * Created by flyop on 19/06/2016.
 */

@Module
@Singleton
public class AppModule
{
    @Provides
    Application provideApplication()
    {
        return BaseApplication.getInstance();
    }

    @Provides
    Context provideContext(){
        return BaseApplication.getInstance();
    }
}
